<?php

declare(strict_types=1);

namespace App\Controller;

use Hyperf\HttpServer\Contract\RequestInterface;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\RequestMapping;

#[Controller]
class DataController extends AbstractController
{
    #[RequestMapping(path: '/index',methods: 'get,post')]
    public function index(RequestInterface $request)
    {
        return [
            'message' => "data",
        ];
    }
}